package java56_4;

public class Calc {
	String brand;// 品牌

	public void incr(int num) {
		num += 2;
		System.out.println("在incr方法中，num=" + num);
	}

	public void incr2(Student s) {
		s.age++;
	}

	public void incr3(Student s) {
		s = new Student();// !!!!!!!!!!!!!!!!!!!!!
		s.name = "陈兵";
		s.age = 19;
		s.show();
		System.out.println(">>>>>>>>>>>>>>.zai incr3方法里");
	}

	// 教务处
	public void zhangfen(Student[] ar) {
		for (int i = 0; i < ar.length; i++) {
			if (ar[i].javaScore < 60) {
				ar[i].javaScore += 2;
			}
		}
	}
}
